package entity

type UserEntity struct {
	ID        uint32 `gorm:"column:id;primary_key" json:"id"`     //
	UserID    uint32 `gorm:"column:user_id" json:"user_id"`       //
	Account   string `gorm:"column:account" json:"account"`       //账号
	Password  string `gorm:"column:password" json:"password"`     //密码
	Nickname  string `gorm:"column:nickname" json:"nickname"`     //昵称
	IsDelete  bool   `gorm:"column:is_delete" json:"is_delete"`   //是否删除(0-正常,1-已删除)
	CreatedAt string `gorm:"column:created_at" json:"created_at"` //
	UpdatedAt string `gorm:"column:updated_at" json:"updated_at"` //
}

// TableName sets the insert table name for this struct type
func (i *UserEntity) TableName() string {
	return "im_user"
}
